package com.little.pattern.stratety;

import com.little.pattern.stratety.behavior.FlyNoWay;
import com.little.pattern.stratety.behavior.Quack;

/**
 * 诱饵鸭
 * Created by littleshu on 18/5/1.
 */
public class DecoyDuck extends Duck {
    public DecoyDuck() {
        this.flyBehavior = new FlyNoWay();
        this.quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("诱饵鸭");
    }
}
